package com.stx.hotkey.client.etcd;

import com.stx.hotkey.common.configcenter.IConfigCenter;
import com.stx.hotkey.common.configcenter.etcd.JdEtcdBuilder;

public class EtcdConfigFactory {
    private static IConfigCenter configCenter;

    public EtcdConfigFactory(){};

    public static IConfigCenter configCenter(){
        return configCenter;
    }

    public static void buildConfigCenter(String etcdServer){
        //  连接多个时，逗号分隔
        configCenter = JdEtcdBuilder.build(etcdServer);
    }
}
